﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Moop.DataLayer.Olap
{
    public static class ExtUtils
    {
        public const string SQ_BCKT_OPEN = "[";
        public const string SQ_BCKT_CLSD = "]";
        public const string DOT = ".";

        public static string PadWithSquare(this string element)
        {
            return SQ_BCKT_OPEN + element + SQ_BCKT_CLSD;
        }


        public static string PadWithSquareNotLast(this string element)
        {
            return SQ_BCKT_OPEN + element + SQ_BCKT_CLSD + DOT;
        }


        public static string AddDotAtStart(this string element)
        {
            return DOT + element;
        }


        public static string AddDotAtEnd(this string element)
        {
            return element + DOT;
        }
    }
}
